package com.faxsun.profile.core.dao;

import org.broadleafcommerce.profile.core.dao.CustomerDao;
import org.broadleafcommerce.profile.core.domain.Customer;


public interface FSCustomerDao extends CustomerDao {

    public boolean check3thCustomerByUid(String uid);

    public Long readCustomerIdBy3thUid(String uid);

    public boolean isMobileBinded(String mobile);

    public Customer readCustomerByMobile(String mobile);

    public Customer readCustomerByReferralCode(String referralCode);
    
    /**
     * 统计当前表中使用email为指定参数的用户数
     * @param email
     * @return
     */
    public int countCustomerByEmail(String email);

}
